package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.Tourist;
import cn.wolfcode.luowowo.article.query.TouristQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TouristMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Tourist record);

    Tourist selectByPrimaryKey(Long id);

    List<Tourist> selectAll();

    int updateByPrimaryKey(Tourist record);

    List<Tourist> selectForList(TouristQuery qo);

    List<Tourist> selectByDestIdAndSubjectId(@Param("destId") Long destId, @Param("subjectId") Long subjectId);

    List<Tourist> selectByDestId(Long destId);

    Tourist selectByTouristId(Long tid);
}